package com.sdleyou.treepro.common.model.dao;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document(collection = "{RRZS}_collection_receive_water")
public class ReceiveWaterDO {

    /**
     * 文档主键
     */
    @Id
    @Field("_id")
    private String objId;

    /**
     * 用户id
     */
    @Field("user_id")
    @Indexed
    private String userId;

    /**
     * 领取他人的id
     */
    @Field("receive_id")
    private String receiveId;

    /**
     * 领取时间
     */
    @Field("date")
    private long date;
}
